package com.five.community.mapper;

import com.five.community.bean.Activity;
import com.five.community.bean.Person;
import com.five.community.bean.vo.PersonVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PersonMapper {
    //插入数据
    void insert(Person person) throws Exception;
    //查询所有数据
    List<Person> selectAll() throws Exception;
    //根据id查询数据
    Person selectById(long id) throws Exception;
    //通过小区id,房产id查询小区名和房产名
    List<PersonVo> selectAllPerson() throws Exception;

    void deleteById(long id) throws Exception;

    void update(Person person) throws Exception;

    List<PersonVo> selectByName(String name) throws Exception;
}
